<div *ngIf="messageService.messages.length">
    <h2>messages</h2>
    <button class="clear" (click)="messageService.clear()">
        clear
    </button>
    <div *ngFor="let msg of messageService.messages"> {{msg}} </div>
</div>